<?php

/**
 * Handeled Log in User 
 *
 * @author samantha
 */
class AuthUser {

    const STATUS_PENDING_APPROVAL = 0;
    const STATUS_ENABLED = 1;
    const STATUS_DISABLED = 2;
    const STATUS_REJECTED = 3;
    const STATUS_DELETED = 4;
    
    private $userId;
    private $userName;
    private $userRole;
    private $userRoleId;
    private $password;
    private $title;
    private $firstName;
    private $lastName;
    private $nid;
    private $designation;
    private $unit;
    private $email;
    private $mobile;
    private $otherPhone;
    private $status;

    public function getUserName() {
        return $this->userName;
    }

    public function setUserName($userName) {
        $this->userName = $userName;
    }

    public function getUserRole() {
        return $this->userRole;
    }

    public function setUserRole($userRole) {
        $this->userRole = $userRole;
    }
    public function getUserRoleId() {
        return $this->userRoleId;
    }

    public function setUserRoleId($userRoleId) {
        $this->userRoleId = $userRoleId;
    }

        public function getUserId() {
        return $this->userId;
    }

    public function setUserId($userId) {
        $this->userId = $userId;
    }

    public function getUnit() {
        return $this->unit;
    }

    public function setUnit($unit) {
        $this->unit = $unit;
    }

    public function getPassword() {
        return $this->password;
    }

    public function setPassword($password) {
        $this->password = $password;
    }

    public function getTitle() {
        return $this->title;
    }

    public function setTitle($title) {
        $this->title = $title;
    }

    public function getFirstName() {
        return $this->firstName;
    }

    public function setFirstName($firstName) {
        $this->firstName = $firstName;
    }

    public function getLastName() {
        return $this->lastName;
    }

    public function setLastName($lastName) {
        $this->lastName = $lastName;
    }

    public function getNid() {
        return $this->nid;
    }

    public function setNid($nid) {
        $this->nid = $nid;
    }

    public function getDesignation() {
        return $this->designation;
    }

    public function setDesignation($designation) {
        $this->designation = $designation;
    }

    public function getEmail() {
        return $this->email;
    }

    public function setEmail($email) {
        $this->email = $email;
    }

    public function getMobile() {
        return $this->mobile;
    }

    public function setMobile($mobile) {
        $this->mobile = $mobile;
    }

    public function getOtherPhone() {
        return $this->otherPhone;
    }

    public function setOtherPhone($otherPhone) {
        $this->otherPhone = $otherPhone;
    }

    public function getStatus() {
        return $this->status;
    }

    public function setStatus($status) {
        $this->status = $status;
    }

    public function isAdmin() {
        return $this->userRole == UserRole::ADMIN;
    }
    
}

